<ul class="breadcrumb">
  <li><a href="<?php echo $this->webroot;?>">Home</a><span class="divider">/</span></li>
  <li><a href="<?php echo $this->webroot;?>Users/index"><?php echo __("Lista Utenti") ?></a><span class="divider">/</span></li>
  <li class="active"><?php echo __("Nuovo Utente"); ?></li>
</ul>

<form action="<?php echo $this->webroot;?>Users/save" method="post" id="form">
	<div class="row-fluid">
		<div class="span3">
			<i class="icon-user icon-4x"></i>
		</div>
		<div class="span9">
			<fieldset>
			    <legend>
					<h4><?php echo __("Nuovo utente") ?></h4>
			    </legend>
			    <label><?php echo __("Username") ?></label> <input type="text" name="User[username]" placeholder="Username">
			    <label><?php echo __("Email") ?></label> <input type="text" name="User[email]" placeholder="Email">
			    <label><?php echo __("Gruppo") ?></label>
				<select name='User[group_id]'>
					<option value=''></option>
					<?foreach ($groups as $key => $group) {?>
				  			<option value='<? echo $key?>' ?><? echo $group ?></option>
					<? } ?> 
				</select> 
			    <label><?php echo __("Stato") ?></label>
				<select name='User[stato]'>
					<?foreach ($stati as $key => $stato) {?>
				  			<option value='<? echo $key?>'><? echo $stato ?></option>
					<? } ?> 
				</select> 
				<p>
					<?php echo $this->Acl->link("<i class='icon-plus'></i>", "/Users/add", array('class'=>'btn','escape'=>false));  ?>
					<button type="submit" class="btn btn-primary"><i class='icon-ok'></i></button>
				</p>
			</fieldset>
		</div>
	</div>
</form>
